﻿<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page language="java" import="java.sql.*" %>
<jsp:useBean id="connDbBean" scope="page" class="com.util.db"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script type="text/javascript" src="js/popup.js"></script>
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<TITLE>修改留言信息</TITLE>
	    
<script type="text/javascript" src="ny/js/jquery.min.js"></script>
<script type="text/javascript" src="ny/js/bootstrap.min.js"></script>
<script src="ny/js/jconfirm/jquery-confirm.min.js"></script>
<link href="ny/css/bootstrap.min.css" rel="stylesheet">
<link href="ny/css/materialdesignicons.min.css" rel="stylesheet">
<link href="ny/css/style.min.css" rel="stylesheet">
<link rel="stylesheet" href="ny/js/jconfirm/jquery-confirm.min.css">
       
	</head>
<%
  String id="";
 
   %>
<script language="javascript">

function gows()
{
	document.location.href="liuyanxinxi_add.jsp?id=<%=id%>";
}
function hsgxia2shxurxu(nstr,nwbk)
{
	if (eval("form1."+nwbk).value.indexOf(nstr)>=0)
	{
		eval("form1."+nwbk).value=eval("form1."+nwbk).value.replace(nstr+"；", "");
	}
	else
	{
		eval("form1."+nwbk).value=eval("form1."+nwbk).value+nstr+"；";
	}
}
</script>
<body>
	<div >
              <div class="card-header"><h4>留言信息修改</h4></div>
              <div class="card-body">
                <form class="form-horizontal" action="updateLiuyanxinxi.do" method="post" id="form1" name="form1" onSubmit="return check();"><input type="hidden" name="id" value="${liuyanxinxi.id}" />
                 <div class='form-group' styxlexulxie1><label class='col-md-3 control-label'>标题</label><div class='col-md-7'><input type='text' class='form-control' value='' name='biaoti' id='biaoti' style='width:45%' placeholder='请输入标题' /></div></div>
		<div class='form-group' styxlexulxie2><label class='col-md-3 control-label'>用户名</label><div class='col-md-7'><input type='text' class='form-control' value='<%=(String)request.getSession().getAttribute("username")%>' style='width:45%;' name='yonghuming' id='yonghuming' readonly='readonly' /></div></div>
		<div class='form-group' styxlexulxie3><label class='col-md-3 control-label'>姓名</label><div class='col-md-7'><input type='text' class='form-control' value='' name='xingming' id='xingming' style='width:45%' placeholder='请输入姓名' /></div></div> 
		<div class='form-group' styxlexulxie4><label class='col-md-3 control-label'>手机</label><div class='col-md-7'><input type='text' class='form-control' value='' name='shouji' id='shouji' style='width:45%' placeholder='请输入手机' /></div></div> 
		<div class='form-group' styxlexulxie5><label class='col-md-3 control-label'>留言内容</label><div class='col-md-7'><textarea id='liuyanneirong' placeholder='' name='liuyanneirong' class='form-control'  style='width:75%'></textarea></div></div>
		<div class='form-group' styxlexulxie6><label class='col-md-3 control-label'>回复</label><div class='col-md-7'><textarea id='huifu' placeholder='' name='huifu' class='form-control'  style='width:75%'></textarea></div></div>
		
				 <div class="form-group">
                    <div class="col-md-9 col-md-offset-3">
                      <button class="btn btn-primary" type="submit" onClick="return checkform();"><i class="mdi mdi-check"></i> 修改</button>
                    </div>
                  </div>
				  <script language="javascript">document.form1.biaoti.value='${liuyanxinxi.biaoti}';</script>
	<script language="javascript">document.form1.yonghuming.value='${liuyanxinxi.yonghuming}';</script>
	<script language="javascript">document.form1.xingming.value='${liuyanxinxi.xingming}';</script>
	<script language="javascript">document.form1.shouji.value='${liuyanxinxi.shouji}';</script>
	<script language="javascript">document.form1.liuyanneirong.value='${liuyanxinxi.liuyanneirong}';</script>
	<script language="javascript">document.form1.huifu.value='${liuyanxinxi.huifu}';</script>
	
                </form>
              </div>
            </div>
   </body>
</html>






